<template>
	<view>
		<view class="rule-title">
			<image src="https://yhflsyz.oss-cn-guangzhou.aliyuncs.com/Store/Group%203919%402x.png" mode="" style="width: 50rpx; height: 50rpx;"></image>
			<text class="topsp" style="font-size: 28rpx;">规则</text>
		</view>
		<view class="rule-content">
			<div>{{rule.title}}</div>
			<text style="white-space: pre-line;">{{ rule.content }}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				rule:{}
			}
		},
		onLoad(){
			this.getRule()
		},
		methods: {
			getRule(){
				this.$u.api.shop.Getpaylist().then(res =>{
					if(res.code == 1){
						this.rule = res.data
					}
				})
			},
			goRule(){
				uni.navigateTo({
					url:'./rule'
				})
			}
		}
	}
</script>

<style>
.rule-title{
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20rpx;
}
.rule-title image{
	width: 100rpx;
	height: 100rpx;
}
.rule-title text{
	font-size: 32rpx;
	color: #333;
}

</style>
